package com.jixiang.goods.controller;



import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.api.ApiController;
import com.baomidou.mybatisplus.extension.api.R;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jixiang.model.common.dtos.ResponseResult;
import com.jixiang.model.goods.entity.GsGoodsSelect;
import com.jixiang.goods.service.GsGoodsSelectService;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.io.Serializable;
import java.util.List;

/**
 * (GsGoodsSelect)表控制层
 *
 * @author makejava
 * @since 2023-10-17 18:41:51
 */
@RestController
@RequestMapping("goodsSelect")
public class GsGoodsSelectController extends ApiController {
    /**
     * 服务对象
     */
    @Resource
    private GsGoodsSelectService gsGoodsSelectService;


    @ApiOperation("获取商品选择类型")
    @GetMapping("/getGoodsSelectList")
    public ResponseResult getGoodsSelect(){
        List<GsGoodsSelect> list = gsGoodsSelectService.query().orderByAsc("priority").list();
        return ResponseResult.okResult(list);
    }

}

